import request from '@/utils/request'

export interface ILogin {
  account: string
  password: string
}

export interface IResponseBody<T = object> {
  code: number
  msg: string
  data: object | T
}

export function login(data: ILogin): Promise<IResponseBody> {
  return request.post('/admin/login', data)
}
